#!/bin/bash -ex

INST_DIR="$PWD"

git clone --depth 1 https://github.com/AlexandreFournier/stegdetect.git

mkdir -p bin etc man/man1 share/stegbreak
cd stegdetect
linux32 ./configure --prefix="$INST_DIR"
linux32 make
linux32 make install
cd ..

wget https://launchpadlibrarian.net/16697277/rules.ini -O share/stegbreak/rules.ini
